package com.activity.bean;

import java.util.ArrayList;

public class CheckBean {

    /**
     * checkinrecordduetime :
     * checkinrecordcategory : 1
     * checkinaddtime : 2019-07-22 00:15:34
     * checkinrecordcheckinno : 1
     * checkinrecordlocation : 泗泾镇德悦路519号
     * checkinrecordactualtime :
     * checkinrecordstatus : 1
     * checkinrecordid : 5
     * checkinrecordlng : 121.000000
     * checkinrecorduserid : 1
     * checkinrecordlat : 31.000000
     */

    private String checkinrecordduetime;
    private String checkinaddtime;
    private String checkinrecordcheckinno;
    private String checkinrecordlocation;
    private String checkinrecordactualtime;
    private String checkinrecordstatus;
    private String checkinrecordid;
    private String checkinrecordlng;
    private String checkinrecorduserid;
    private String checkinrecordlat;


    public String getCheckinrecordkind() {

        if(checkinrecordkind==null)
            return "1";
        return checkinrecordkind;
    }

    public void setCheckinrecordkind(String checkinrecordkind) {
        this.checkinrecordkind = checkinrecordkind;
    }

    private String checkinrecordkind; //1.正常考勤 2.外出
    private String checkinrecordcategory;//类别 1.上班（外出考勤） 2.下班（外出考勤结束）
    public String getCheckinrecordduetime() {
        return checkinrecordduetime;
    }

    public void setCheckinrecordduetime(String checkinrecordduetime) {
        this.checkinrecordduetime = checkinrecordduetime;
    }

    public String getCheckinrecordcategory() {
        return checkinrecordcategory;
    }

    public void setCheckinrecordcategory(String checkinrecordcategory) {
        this.checkinrecordcategory = checkinrecordcategory;
    }

    public String getCheckinaddtime() {
        return checkinaddtime;
    }

    public void setCheckinaddtime(String checkinaddtime) {
        this.checkinaddtime = checkinaddtime;
    }

    public String getCheckinrecordcheckinno() {
        return checkinrecordcheckinno;
    }

    public void setCheckinrecordcheckinno(String checkinrecordcheckinno) {
        this.checkinrecordcheckinno = checkinrecordcheckinno;
    }

    public String getCheckinrecordlocation() {

        if(checkinrecordstatus.equals("-1")){
            return checkinrecordlocation+"(无效打卡)";
        }
        return checkinrecordlocation;
    }

    public void setCheckinrecordlocation(String checkinrecordlocation) {
        this.checkinrecordlocation = checkinrecordlocation;
    }

    public String getCheckinrecordactualtime() {
        return checkinrecordactualtime;
    }

    public void setCheckinrecordactualtime(String checkinrecordactualtime) {
        this.checkinrecordactualtime = checkinrecordactualtime;
    }

    public String getCheckinrecordstatus() {
        return checkinrecordstatus;
    }

    public void setCheckinrecordstatus(String checkinrecordstatus) {
        this.checkinrecordstatus = checkinrecordstatus;
    }

    public String getCheckinrecordid() {
        return checkinrecordid;
    }

    public void setCheckinrecordid(String checkinrecordid) {
        this.checkinrecordid = checkinrecordid;
    }

    public String getCheckinrecordlng() {
        return checkinrecordlng;
    }

    public void setCheckinrecordlng(String checkinrecordlng) {
        this.checkinrecordlng = checkinrecordlng;
    }

    public String getCheckinrecorduserid() {
        return checkinrecorduserid;
    }

    public void setCheckinrecorduserid(String checkinrecorduserid) {
        this.checkinrecorduserid = checkinrecorduserid;
    }

    public String getCheckinrecordlat() {
        return checkinrecordlat;
    }

    public void setCheckinrecordlat(String checkinrecordlat) {
        this.checkinrecordlat = checkinrecordlat;
    }
}
